<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/common/common_taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>梦网工具本</title>
<jsp:include page="/WEB-INF/pages/include/head.jsp"></jsp:include>
<link href="/css/code.css" rel="stylesheet" type="text/css" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<link id="highlight-style" href="/highlight/styles/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/codeshow.js"></script>
<script type="text/javascript" src="/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="off-nav">
	<jsp:include page="/WEB-INF/pages/fc/include/nav.jsp"></jsp:include>
	<div id="main-div">
		<div class="main-left-list-title">
			<c:if test="${code.isShare eq 1 }"><i class="cus-star" title="已分享"></i></c:if>
			<c:if test="${code.isTop eq 1 }"><img src="/image/top.gif" title="已置顶"/></c:if>
			 ${code.title }
		</div>
		<div class="main-left-list-info">
			<fmt:formatDate value="${code.publishTime }" type="both"/>
			　|　${code.codeType }　|　${code.readCount } Views　|　Author： ${loginUser.get("username") }
			　|　<c:if test="${code.isShare eq 1 }">已分享</c:if><c:if test="${code.isShare eq 0 }">未分享</c:if>
			　|　<a href="/code/toUpdate/${code.id }">编辑</a>　|　<a href="javascript:void(0);" id="layer-delete-btn" path="/code/delete/${code.id }">删除</a>
			　|　<c:if test="${code.isTop eq 0 }"><a href="/code/top/${code.id }">置顶</a></c:if><c:if test="${code.isTop eq 1 }"><a href="/code/notop/${code.id }">取消置顶</a></c:if>
			　|　<c:if test="${code.isShare eq 0 }"><a href="/code/share/${code.id }">分享</a></c:if><c:if test="${code.isShare eq 1 }"><a href="/code/noshare/${code.id }">取消分享</a></c:if>
		</div>
		<div class="main-left-list-abstract">
			<div class="look-photo">
				<img src="${code.lookPhoto }" width="100px" height="100px"/>
			</div>
			<div class="abstract">
				${code.note }
			</div>
		</div>
		<span class="pull-right" style="color:gray;margin-bottom: 5px;">代码高亮风格切换：
			<a class="btn btn-default btn-sm codestyle" code-style="default">default</a> 
			<a class="btn btn-default btn-sm codestyle" code-style="github">github</a> 
			<a class="btn btn-default btn-sm codestyle" code-style="googlecode">google code</a>
		</span>
		<div class="main-left-show-content">
			<input type="hidden" id="codeType" value="${code.codeType}"/>
			<pre><code class="java">
${code.content }
			</code></pre>
		</div>
	</div>
	<jsp:include page="/WEB-INF/pages/include/copyright.jsp"></jsp:include>
</body>

</html>
